package com.cn.tous.resource.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author mengwei
 * @description PublicController
 * @createDate 2025/7/26 16:34
 */

@RestController
@RequestMapping("/public")
public class PublicController {


    @GetMapping("/info")
    public String getPublicInfo() {
        return "这是公开信息，不需要认证即可访问";
    }

    @GetMapping("/health")
    public String healthCheck() {
        return "服务正常运行中";
    }
}
